package com.jule.teenpatti.mail.dao.mapper;

import com.jule.teenpatti.mail.dao.bean.MailUserModel;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MailUserModelMapper {
    int deleteByPrimaryKey(Long id);

    int insert(MailUserModel record);

    MailUserModel selectByPrimaryKey(Long id);

    List<MailUserModel> selectAll();

    MailUserModel selectByUserIdMailConfigId(@Param("userId") String userId,@Param("mailConfigId") int mailConfigId);

    List<MailUserModel> selectByUserId(@Param("userId")String userId,
                                       @Param("expireTime") Long currentTimeMillis,
                                       @Param("offset") int offset,
                                       @Param("limit") int limit);

    int updateByPrimaryKey(MailUserModel record);
}